package com.lzs.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author 小刘先生
 * @date 2020/11/25 21:25
 */
public class TimeUtil {
    public static String gettime(){

        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-ddHH:mm:ss:mm");

        String time= df.format(new Date()).toString().replace("-","").replace(":","");
        return time;


    }

    public static void main(String[] args) {
        System.out.println(TimeUtil.gettime());
    }
}
